#include <simple_bind.hpp>
#include <iostream>
#include <vector>
#include <boost/lambda/lambda.hpp>

class Test {
public:
    void do_stuff(const std::vector<int> &v) {
        using namespace boost::lambda;
        std::for_each(v.begin(), v.end(),
                std::cout << _1 << ',');
    }
};

int main()
{
    Test t; 
    std::vector<int> vec;
    vec.push_back(42);
    simple_bind(&Test::do_stuff, t, _x) (vec);
    return 0;
}
